import request from '@/utils/request'

// 查询易肇事肇祸精神病人列表
export function listHigh_risk_mental_patient(query) {
  return request({
    url: '/report/high_risk_mental_patient/list',
    method: 'get',
    params: query
  })
}

// 查询易肇事肇祸精神病人详细
export function getHigh_risk_mental_patient(id) {
  return request({
    url: '/report/high_risk_mental_patient/' + id,
    method: 'get'
  })
}

// 新增易肇事肇祸精神病人
export function addHigh_risk_mental_patient(data) {
  return request({
    url: '/report/high_risk_mental_patient',
    method: 'post',
    data: data
  })
}

// 修改易肇事肇祸精神病人
export function updateHigh_risk_mental_patient(data) {
  return request({
    url: '/report/high_risk_mental_patient',
    method: 'put',
    data: data
  })
}

// 删除易肇事肇祸精神病人
export function delHigh_risk_mental_patient(id) {
  return request({
    url: '/report/high_risk_mental_patient/' + id,
    method: 'delete'
  })
}
